<%@ page contentType="text/html; charset=utf-8"%>
<html>
<head>
<title>第一个JSP程序</title>
</head>
<body>
	<%
		out.println("Hello World ");
		out.println("Your IP address is " + request.getRemoteAddr());
	%>

	<p>
		jsp表达式: Today's dates:
		<%=(new java.util.Date()).toLocaleString()%>
	</p>

	<%--判断语句 --%>
	<%!int day = 3;%>
	<%
		if (day == 1 | day == 7) {
	%>
	<p>Today is weekend</p>
	<%
		} else {
	%>
	<p>Today is not weekends</p>
	<%
		}
	%>
</body>

</html>
